Similar like the norm, we define the metric on a set X is a function ρ on X×X in [0,∞) satisfying the following conditions:
- ρ(x,y)=0 if and only if x=y (positiver definiteness)
- ρ(x,y)=ρ(y,x),∀x,y∈X (symmetry)
- ρ(x,y)≤ρ(x,z)+ρ(z,y),∀x,y,z∈X (triangle inequality)
And we define a metric space is a set X with a metric ρ, denote such space with (X,ρ).
Now, we can find that most of our pervious definition can be easily extended to metric spaces. For example, the distance between two points x,y∈X is defined as ρ(x,y), and the diameter of a set A⊆X is defined as maxx,y∈Aρ(x,y). A sequence (xn) converge to a point x if limn→∞ρ(xn,x)=0.
But what difference is cauchy, a sequence (xn) in a metric space (X,ρ) is cauchy sequence if ∀ϵ>0,∃N∈N such that ρ(xn,xm)<ϵ if n,m≥N.
- such metric space is complete when every cauchy sequence has a limit in the space.
A function f:(X,ρ)→(Y,σ) is called a continuous function if ∀x0∈X,ϵ>0,∃δ>0 such that ρ(x,x0)<δ⟹σ(f(x),f(x0))<ϵ.
Let function f:(X,ρ)→(Y,σ), then following are equivalent:
- f is continuous on X
- for every sequence (xn) with limn→∞xn=x0∈X, limn→∞f(xn)=f(x0)
- f−1(U)={x∈X:f(x)∈U} is open for every open set U⊆Y
And now we can define Cb(X,Rm) on a metric space (X,ρ) is complete withn the sup norm ∥f∥=supx∈X∣f(x)∣.
Two metric σ and ρ are topologically equivalent if ∀x∈X,r>0,∃s=s(r,x)>0 such that Bsρ(x)⊂Brσ(x) and Bsσ(x)⊂Brρ(x).
- they are equivalent if ∃0<c<C such that cρ(x,y)≤σ(x,y)≤Cρ(x,y) for all x,y∈X.
Compact Metric Spaces
A collection of open sets {Uα:α∈A} in X is called a open cover of Y⊂X if Y⊂⋃α∈AUα.